package com.naiterui.ehp.bs.esign.service;

import com.naiterui.ehp.bp.bo.ca.EmrSignBO;
import com.naiterui.ehp.bp.support.exception.BusinessException;

/**
 * @author guoyongxiang
 * @date 2019/9/10 20:02
 * @since 1.0.0
 */
public interface IEmrService {


    /**
     * <pre>
     *     生成pdf
     *     同步病例文件，生成签名unionId
     * </pre>
     *
     * @param emrId
     *
     * @return
     *
     * @throws BusinessException
     */
    EmrSignBO getUnionId(String emrId, Long inquirerId, Integer requestFrom) throws BusinessException;

    /**
     * <pre>
     *     病例签名
     * </pre>
     *
     * @param emrId
     * @throws BusinessException
     */
    void sign(String emrId, String pin, Integer requestFrom) throws BusinessException;

}
